/**
 * @name autoRegistryComponents
 * @description 按需加载，自动引入组件
 */
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import Components from 'unplugin-vue-components/vite';

export const autoRegistryComponents = () => {
  return Components({
    resolvers: [AntDesignVueResolver({ importStyle: 'less' })],
    dts: true,
    include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
  });
};
